import http from '@/utils/http';
import request from '@/utils/request';
/*
 *  user：账号管理
 * */

export async function userProfileList(body) {
  return http.get('/application/user/list', body);
}

export async function userProfileUpdate(body) {
  return http.post('/application/user/add', body);
}

export async function userProfileEdit(body) {
  return http.post('/application/user/edit', body);
}

export async function userProfileRemove(body) {
  return http.post('/application/user/delete', body);
}

export async function userProfileStatus(body) {
  return http.post('/application/user/status', body);
}

export async function userProfileDisable(body) {
  return http.post('/application/user/disable', body);
}

export async function userProfileImport(body) {
  return http.uploadFile('/user/import', body);
}

export async function userProfileResetPassword(body) {
  return http.get('/application/user/resetPassword', body);
}

//AIGC
//分类树查询
export async function appUserTree(body) {
  return http.get('/application/user/category/tree', body);
}

//新增分类
export async function appUserTreeAdd(body) {
  return http.post('/application/user/category/add', body);
}

//删除分类
export async function appUserTreeDelete(body) {
  return http.get('/application/user/category/delete', body);
}

//编辑分类
export async function appUserTreeEdit(body) {
  return http.post('/application/user/category/edit', body);
}

//获取通讯录列表
export async function bookUserList(body) {
  return http.get('/application/user/sync/list', body);
}

//通讯录删除
export async function bookUserDelete(body) {
  return http.get('/application/user/sync/remove', body);
}

//查询甲方管理员列表
export async function adminList(body) {
  return http.get('/application/user/getAdminList', body);
}

//查询甲方所有用户列表
export async function allList(body) {
  return http.get('/application/user/getAllList', body);
}

//新增甲方管理员
export async function adminAdd(body) {
  return http.post('/application/user/addAdmin', body);
}
